package operation;

import student.Student;
import student.StudentArray;

public class FindAllOperation implements IOperation{
    @Override
    public void work(StudentArray stulist) {
        System.out.println("查找全部信息");
        int sz = stulist.getUsedSize();
        if(sz == 0){
            System.out.println("学生表为空");
        }
        for (int i = 0; i < sz; i++) {
            Student stu = stulist.getStudent(i);
            System.out.println(stu);
        }
    }
}
